# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header $

inherit cvs

ECVS_USER="cvsread"
ECVS_SERVER="cvs.php.net:/repository"
ECVS_MODULE="php-gtk"
ECVS_BRANCH="GTK2"
ECVS_LOCALNAME="${PN}"
S=${WORKDIR}/${ECVS_LOCALNAME}

DESCRIPTION="PHP-gtk2."
HOMEPAGE="http://php.gtk.net/"
SRC_URI=""

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

RDEPEND="evo? ( >=dev-dotnet/evolution-sharp-0.3 )
		sqlite? ( dev-db/sqlite )
		>=gnome-extra/libgtkhtml-3.0.10*
		>=dev-dotnet/gtk-sharp-1.0
		>=dev-lang/mono-1.0
		gnome-extra/at-spi
		( || ( sys-apps/dbus sys-apps/dbus-cvs ) )"

DEPEND="${RDEPEND}
	dev-util/pkgconfig"

DOCS="AUTHORS Changelog COPYING NEWS README"

src_compile(){
	cp php_gtk_new.m4 php_gtk.m4
	./buildconf 
	econf --disable-libglade || die "conf failed."
	make || die "make failed."
}

src_install(){
	make install DESTDIR=${D} || die "install failed."
}

